EmotionPairSerializer

object EmotionPairSerializer : KSerializer<Pair<String, Float>>

Serializer for the Pair of emotions and their intensities, allowing serialization and deserialization. This serializer encodes the emotion name as a string and its intensity as a float.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Pair<String, Float>

Deserializes a Pair of emotion and intensity from a serialized format.

Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Pair<String, Float>)

Serializes a Pair of emotion and intensity.